package action.tempalate;

import action.tempalate.vo.Account;

import java.util.Random;


public class CurrentAccount extends BaseAccount{

    public CurrentAccount(Account account) {
        super(account);
    }


    public boolean verify() {
        if ("root".equals(account.getUsername())&&"root".equals(account.getPassword()) ){
            return Boolean.TRUE;
        }
        return Boolean.FALSE;
    }

    @Override
    void CalculateInterest() {
        int interest= new Random().nextInt(300);
        account.setAccount(account.getAccount()+interest);
    }
}
